package com.chanceit.ssss.button;

import org.gl.GlobalVariable;

import android.app.Activity;
import android.view.View;

import com.chanceit.ssss.common.ActivityActionName;
import com.chanceit.ssss.common.IntentExtraDataKey;

public class GoAddCarButtonOnClickImp implements View.OnClickListener {
	Activity activity;
	public GoAddCarButtonOnClickImp(Activity activity){
		this.activity= activity;
	}
	@Override
	public void onClick(View v) {


		if (activity!=null) {
			GlobalVariable.getGlobalInstance().intent.putExtra(
					IntentExtraDataKey.USERID, -1);
			GlobalVariable.getGlobalInstance().intent.putExtra(
					IntentExtraDataKey.PLATE, "");
			activity.startActivityForResult(
					GlobalVariable.getGlobalInstance().intent
							.setAction(ActivityActionName.CARER),
					IntentExtraDataKey.ACTIVITY_QUESTCODE_UPDATECARERINFO);
		}
		
	}
}
